package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.ProdLevel;
import com.yami.shop.dao.ProdLevelMapper;
import com.yami.shop.service.ProdLevelService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class ProdLevelServiceImpl extends ServiceImpl<ProdLevelMapper, ProdLevel> implements ProdLevelService {

    @Autowired
    private ProdLevelMapper prodLevelMapper;

    @Override
    public List<ProdLevel> getLists() {
        return prodLevelMapper.selectList(new QueryWrapper<>());
    }

}
